package com.neuedu.yunong.service.impl;
import lombok.RequiredArgsConstructor;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neuedu.yunong.mapper.YunongLandReportMapper;
import com.neuedu.yunong.domain.YunongLandReport;
import com.neuedu.yunong.service.IYunongLandReportService;

/**
 * 土地资源上报Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-14
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class YunongLandReportServiceImpl extends ServiceImpl<YunongLandReportMapper, YunongLandReport> implements IYunongLandReportService
{
    private final YunongLandReportMapper yunongLandReportMapper;

    /**
     * 查询土地资源上报
     *
     * @param id 土地资源上报主键
     * @return 土地资源上报
     */
    @Override
    public YunongLandReport selectYunongLandReportById(Long id)
    {
        return yunongLandReportMapper.selectYunongLandReportById(id);
    }

    /**
     * 查询土地资源上报列表
     *
     * @param yunongLandReport 土地资源上报
     * @return 土地资源上报
     */
    @Override
    public List<YunongLandReport> selectYunongLandReportList(YunongLandReport yunongLandReport)
    {
        return yunongLandReportMapper.selectYunongLandReportList(yunongLandReport);
    }

    /**
     * 新增土地资源上报
     *
     * @param yunongLandReport 土地资源上报
     * @return 结果
     */
    @Override
    public int insertYunongLandReport(YunongLandReport yunongLandReport)
    {
        return yunongLandReportMapper.insertYunongLandReport(yunongLandReport);
    }

    /**
     * 修改土地资源上报
     *
     * @param yunongLandReport 土地资源上报
     * @return 结果
     */
    @Override
    public int updateYunongLandReport(YunongLandReport yunongLandReport)
    {
        return yunongLandReportMapper.updateYunongLandReport(yunongLandReport);
    }

    /**
     * 批量删除土地资源上报
     *
     * @param ids 需要删除的土地资源上报主键
     * @return 结果
     */
    @Override
    public int deleteYunongLandReportByIds(Long[] ids)
    {
        return yunongLandReportMapper.deleteYunongLandReportByIds(ids);
    }

    /**
     * 删除土地资源上报信息
     *
     * @param id 土地资源上报主键
     * @return 结果
     */
    @Override
    public int deleteYunongLandReportById(Long id)
    {
        return yunongLandReportMapper.deleteYunongLandReportById(id);
    }
}
